# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Peter Hatina <phatina AT gmail.com>
pkgname=glm
pkgver=0.9.4.3
pkgrel=1
pkgdesc="C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification"
arch=('any')
license=('GPL')
url="http://glm.g-truc.net"
source=("http://sourceforge.net/projects/ogl-math/files/glm-$pkgver/glm-$pkgver.zip")
md5sums=('b32dc6ba8807c112d9a8ff80cf753f98')

package() {
    cd $pkgname-$pkgver
    mkdir -p $pkgdir/usr/include/glm
    mkdir -p $pkgdir/usr/share/doc
    cp -r glm $pkgdir/usr/include
    cp -r doc $pkgdir/usr/share/doc/glm
    rm -f $pkgdir/usr/include/glm/CMakeLists.txt
    find $pkgdir -type f -exec chmod 644 {} \;
    find $pkgdir -type d -exec chmod 755 {} \;
}
